package cn.buddha.jesw.mvc;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName SpringMvcApp
 * @Author 友野浩二
 * @Date 2019/11/19 8:59
 * @Description SpringMVC
 * @Version 1.0
 */
@SpringBootApplication
@EnableAsync
@RestController
@Slf4j
public class SpringMvcApp {

    public static void main(String[] args) {
        SpringApplication.run(SpringMvcApp.class, args);
        log.info("<<<<======== Tong SpringMVC Started ========>>>>");
    }

    @RequestMapping(value = "/", method = RequestMethod.GET)
    public String home() {
        return "I'm Tong Spring MVC!";
    }

}
